package config

type UploadConfig struct {
	UploadRoot            string   `json:"upload_root"`
	ImageAllowExtensions  []string `json:"image_allow_extensions"`
	ImageAllowSize        int64    `json:"image_allow_size"`
	ImageAllowSizeDisplay string   `json:"image_allow_size_display"`
}

func Upload() *UploadConfig {
	return &UploadConfig{
		UploadRoot:            "static/uploads",
		ImageAllowExtensions:  []string{"jpg", "png", "jpeg"},
		ImageAllowSize:        1024 * 500,
		ImageAllowSizeDisplay: "500KB",
	}
}
